package com.xjj.datarources.common;


import lombok.Getter;

/**
 * @name: xjj
 * @date: 2021/5/20 9:21
 *
 * 通过设置getter和相应的成员变量可以省去实现方法
 */
@Getter
public enum ResultCode implements StatusCode {
    SUCCESS(1000, "请求成功"),
    FAILED(4001,"请求失败"),
    VALIDATE_ERROR(4003,"参数检验失败"),
    USER_ERROR_OR_PASSWORD_ERROR(4004,"用户名错误或密码错误"),
    USER_NOT_LOGIN(4005,"用户未登录"),
    NO_PERMISSION(4008,"用户权限不足"),
    SYSTEM_ERR(4007,"系统错误"),
    USER_OUT(1002,"退出成功"),
    RESPONSE_PACK_ERROR(4002,"response包装失败");
    private int code;

    private String msg;

     ResultCode(int code, String message){
        this.code = code;
        this.msg = message;
    }

}
